<?php
/**
 * Created by PhpStorm.
 * User: Da Xiong
 * Date: 2018/12/5
 * Time: 10:02
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class Address extends Model
{
    protected $table = 'address';

    //lately 是否
    const STATUS_1 = 1;//最近使用
    const STATUS_0 = 0;

    protected $fillable = [
        'user_id','name','address','phone','lately','created_at','updated_at'
    ];
//    public $timestamps = false;
    protected $dates = ['created_at','updated_at'];

//    public function user(){
//        return $this->belongsTo('App\Models\Users', 'user_id', 'id');
//    }
}